/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pruebas;

import com.imsx.model.Cliente;
import com.imsx.viss.DAOUsuario;
import java.util.concurrent.ExecutionException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author pablo
 */
public class NewMain {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
//        try {
//           
//            Cliente c = new Cliente();
//            c.setApellido("japa");
//            c.setContrasena("1234");
//            c.setDireccion("larga");
//            c.setTelefono("2154854");
//            c.setNombre("pablo");
//            c.setCorreo("juan@hotmaul.com");
//            
//            DAOUsuario.getInstancia().Registrar(c);
//            System.out.println("Registrado");
//        } catch (ExecutionException ex) {
//            Logger.getLogger(NewMain.class.getName()).log(Level.SEVERE, null, ex);
//        } catch (InterruptedException ex) {
//            Logger.getLogger(NewMain.class.getName()).log(Level.SEVERE, null, ex);
//        }
        System.out.println("\t\tDATOS DE USUARIOS\n");
        Cliente c1=DAOUsuario.getInstancia().obtener("miguel@hotmail.com");
        System.out.println();
        System.out.println(c1.toString());
    }
    
}
